﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Serialization;

namespace TestEngine.Script.Task
{
    [Serializable]
    public class ApplyInputsTask: ScriptTask
    {

        

        protected override bool RunTaskSub(ScriptState state)
        {
            if (state.IsFailed) return false;
            var inputs = state.Inputs;
            foreach (KeyValuePair<string, string> input in inputs)
            {
                state.Session.SetRange(input.Key, input.Value);                
            }
            return true;
        }
    }
}
